package com.qf.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@ConfigurationProperties(prefix = "student")
@Data
@Component
public class Student {

//    @Value("${students[1].id}")
    private int id;


//    @Value("${students[1].name}")
    private String name;

//    @Value("${students[1].age}")
    private int age;

//    @Value("${person.address.city}")
    private String city;

//    @Value("${arr[0]}")
    private String subject;


}
